<!DOCTYPE html>
<html>
<head>
    <!-- 页面meta -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>荥阳市药品管理平台</title>
    <meta name="description" content="健康">
    <meta name="keywords" content="健康">
    <meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" name="viewport">
    <!-- 引入样式 -->
    <link rel="stylesheet" href="plugins/elementui/index.css">
    <link rel="stylesheet" href="plugins/font-awesome/css/font-awesome.min.css">
    <link rel="stylesheet" href="css/style.css">
    <style type="text/css">
    .el-main{
        position: absolute;
        top: 70px;
        bottom: 0px;
        left: 200px;
        right: 10px;
        padding: 0;
    }
    </style>
</head>
<body class="hold-transition skin-purple sidebar-mini">
    <div id="app">
        <el-container>
            <el-header  class="main-header" style="height:70px;">
                <nav class="navbar navbar-static-top" :class=''>
                    <!-- Logo -->
                    <a href="#" class="logo" style="text-align:center">
                        <span class="logo-lg">荥阳市药品管理平台</span>
                    </a>
                    <div class="right-menu">
                        <span class="help"><i class="fa fa-exclamation-circle" aria-hidden="true"></i>帮助</span>
                        <el-dropdown class="avatar-container right-menu-item" trigger="click">
                            <div class="avatar-wrapper">
                                <input id="user-name-label" type="hidden" value="">
                                <input id="code" type="hidden" value="">
                                <img src="img/user2-160x160.jpg" class="user-avatar">
                                {{}}
                            </div>
                            <el-dropdown-menu slot="dropdown">
                                <el-dropdown-item divided>
                                    <span style="display:block;">修改密码</span>
                                </el-dropdown-item>
                                <el-dropdown-item divided>
                                        <span style="display:block;">
                                            <a  href="http://localhost:8080/myspringboot/static/login.html">退出</a>
                                        </span>
                                    </el-dropdown-item>
                            </el-dropdown-menu>
                        </el-dropdown>
                    </div>
                </nav>
            </el-header>
            <el-container>
                <el-aside width="200px">
                    <el-menu>
                        <el-submenu v-for="menu in menuList" :index="menu.path">
                            <template slot="title">
                                <i class="fa" :class="menu.icon" id="menu.id"></i>
                                {{menu.title}}
                            </template>
                            <template v-for="child in menu.children">
                                <el-menu-item :index="child.path">
                                    <a :href="child.linkUrl" target="right">{{child.title}}</a>
                                </el-menu-item>
                            </template>
                        </el-submenu>
                    </el-menu>
                </el-aside>
                <el-container>
                    <iframe name="right" class="el-main" src="indexa.html" width="100%" height="580px" frameborder="0">
                    </iframe>
                </el-container>
            </el-container>
        </el-container>
    </div>
</body>
<!-- 引入组件库 -->
<script src="js/vue.js"></script>
<script src="plugins/elementui/index.js"></script>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/axios-0.18.0.js"></script>


<script>
    new Vue({
        el: '#app',
        data:{
            tabVisible:null,
            menuList:[
                {

                    "path": "1",
                    "title": "监督管理",
                    "icon":"fa-dashboard",
                    "children": [
                        {
                            "path": "/1-1",
                            "title": "药品品目管理",
                            "icon":"fa-dashboard",
                            "linkUrl":"pages/01/supervision.html",
                            "children":[
                                {
                                    "path": "/1-1-1",
                                    "title": "药品品目维护",

                                },{
                                    "path": "/1-1-2",
                                    "title": "药品信息维护",

                                }]
                        },{
                            "path": "/1-2",
                            "title": "采购单审核",
                            "linkUrl":"pages/01/drug03.html",
                        },{
                            "path": "/1-3",
                            "title": "供货管理",
                            "linkUrl":"pages/01/drug04.html",
                        },{
                            "path": "/1-4",
                            "title": "交易查询统计",
                            "icon":"fa-dashboard",
                            "linkUrl":"pages/01/trade statistics.html",
                            "children":[
                                {
                                    "path": "/1-4-1",
                                    "title": "按采购单查询",

                                },{
                                    "path": "/1-4-2",
                                    "title": "按供货商查询",
                                    "linkUrl":"member.html",
                                },{
                                    "path": "/1-4-3",
                                    "title": "按采购医院查询",
                                    "linkUrl":"member.html",
                                },{
                                    "path": "/1-4-4",
                                    "title": "按交易药品查询",
                                    "linkUrl":"member.html",
                                },{
                                    "path": "/1-4-5",
                                    "title": "查询药品交易明细",
                                    "linkUrl":"member.html",
                            },]
                        },]
                },
                {
                    "path": "2",
                    "title": "采购管理",
                    "icon":"fa-user-md",
                    "visible" : "this.tabVisible",
                    "children": [
                        {
                            "path": "/2-1",
                            "title": "药品目录查询",
                            "icon":"fa-user-md",
                            "linkUrl":"pages/02/drug directory.html",
                            "children":[{
                                "path": "/2-1-1",
                                "title": "药品品目查询",

                            },{
                                "path": "/2-1-2",
                                "title": "药品信息查询",

                            },]
                        },
                        {
                            "path": "/2-2",
                            "title": "采购目录管理",
                            "icon":"fa-user-md",
                            "linkUrl":"pages/02/procurement directory.html",
                            "children":[{
                                "path": "/2-2-1",
                                "title": "采购药品选择",

                            },{
                                "path": "/2-2-2",
                                "title": "采购目录维护",

                            },]
                        },
                        {
                            "path": "/2-3",
                            "title": "采购管理",
                            "icon":"fa-user-md",
                            "linkUrl":"pages/02/procurement.html",
                            "children":[{
                                "path": "/2-3-1",
                                "title": "采购单维护",

                            },{
                                "path": "/2-3-2",
                                "title": "采购入库",

                            },]
                        },
                        {
                            "path": "/2-4",
                            "title": "退货管理",
                            "icon":"fa-user-md",
                            "linkUrl":"pages/02/drug08.html",
                            "children":[{
                                "path": "/2-4-1",
                                "title": "退货单维护",
                                "linkUrl":"member.html",
                            },]
                        },
                        {
                            "path": "/2-5",
                            "title": "结算管理",
                            "icon":"fa-user-md",
                            "linkUrl":"pages/02/drug010.html",
                            "children":[{
                                "path": "/2-5-1",
                                "title": "结算单维护",

                            },]
                        },
                        {
                            "path": "/2-6",
                            "title": "交易查询统计",
                            "icon":"fa-user-md",
                            "linkUrl":"pages/02/trade .html",
                            "children":[{
                                "path": "/2-6-1",
                                "title": "按采购单查询",
                            },{
                                "path": "/2-6-2",
                                "title": "按供货商查询",

                            },{
                                "path": "/2-6-3",
                                "title": "按采购医院查询",

                            },{
                                "path": "/2-6-4",
                                "title": "按交易药品查询",

                            },{
                                "path": "/2-6-5",
                                "title": "查询药品交易明细",

                            },]
                        },
                    ]
                },
                {
                    "path": "3",
                    "title": "供货管理",
                    "icon":"fa-tty",
                    "visible" : "this.tabVisible",
                    "children": [
                        {
                            "path": "/3-1",
                            "title": "药品目录查询",
                            "icon":"fa-tty",
                            "linkUrl":"pages/03/drugategory.html",
                        },
                        {
                            "path": "/3-2",
                            "title": "商品管理",
                            "icon":"fa-tty",
                            "linkUrl":"pages/03/commodity.html",},
                        {
                            "path": "/3-3",
                            "title": "发货管理",
                            "icon":"fa-tty",
                            "linkUrl":"pages/03/delivery.html",
                        },
                        {
                            "path": "/3-4",
                            "title": "退货管理",
                            "icon":"fa-tty",
                            "linkUrl":"pages/03/returnorder.html",
                        },
                        {
                            "path": "/3-5",
                            "title": "结算管理",
                            "icon":"fa-tty",
                            "linkUrl":"pages/03/Settlement.html",
                        },
                        {
                            "path": "/3-6",
                            "title": "交易统计查询",
                            "icon":"fa-tty",
                            "linkUrl":"pages/03/statistics.html",
                        },
						
                    ]
                },
                {
                    "path": "4",
                    "title": "系统管理",
                    "icon":"fa-heartbeat",
                    "visible" : "this.tabVisible",

                    "children": [
                        {
                            "path": "/4-1",
                            "title": "医院维护",
                            "icon":"fa-tty",
                            "linkUrl":"pages/04/drug01 hospital.html",
                        },
                        {
                            "path": "/4-2",
                            "title": "供货商维护",
                            "icon":"fa-tty",
                            "linkUrl":"pages/04/drug02 supplier.html",
                        },
                        {
                            "path": "/4-3",
                            "title": "监督单位维护",
                            "icon":"fa-tty",
                            "linkUrl":"pages/04/drug03 supervisorybody.html",
                        },
                        {
                            "path": "/4-4",
                            "title": "用户管理",
                            "icon":"fa-tty",
                            "visible" : "this.tabVisible",
                            "linkUrl":"pages/04/drug04 userrole.html",
                        },
                        {
                            "path": "/4-5",
                            "title": "字典管理",
                            "icon":"fa-tty",
                            "linkUrl":"pages/04/drug05 dictionary.html",
                        },
                    ]
                },
            ]
        },
        created(){

            this.role = $("#code").val();
            console.log(this.role)
            this.tabVisible = (this.role === '0' ? 1 : 0);
            this.menuList[0].visible = this.tabVisible;
            this.menuList[1].visible = this.tabVisible;
            this.menuList[2].visible = this.tabVisible;
            this.menuList[3].visible = this.tabVisible;
        },
    });
    $(function() {
            var wd = 200;
            $(".el-main").css('width', $('body').width() - wd + 'px');
    });
</script>


<script type="text/javascript" >
   function  cc() {

    }
</script>
</html>
